import platform = require('../../../../platform/common/baseCommon');
import appClient = require('../../../../platform/client/appClient');
import testPageView1 = require('../../../../project/test/config/client/test/testPageViewConfig1');
import testPageView3 = require('../../../../project/test/config/client/test/testPageViewConfig3');


let moduleName = "platform.test";



@platform.addon("测试页面2", "测试页面2", moduleName)
@appClient.template("project/test/views/test/testPage2.html")
export class testPageView2 extends appClient.baseView {
    $btnPreStep?: JQuery = undefined;
    $btnNextStep?: JQuery = undefined;

    onAfterBind?() {
        this.$btnPreStep.click(() => {
            //appClient.mainApplication.mainForm.navigate(testPageView1.defaultObject, '测试页面1');
            appClient.mainApplication.mainForm.navigateBack();
        });
        this.$btnNextStep.click(() => {
            appClient.mainApplication.mainForm.navigate(testPageView3.defaultObject, '测试页面3');
        });
    }
}